﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BookLibrary
{
    public class Uitgever
    {
        public String Id { get; set;}
        public String Description { get; set;}

        // override object.Equals
        public override bool Equals(object obj)
        {

            if (obj == null || GetType() != obj.GetType())
            {
                return false;
            }

            return this.Id.Equals(((Uitgever)obj).Id);
        }

        public override string ToString()
        {
            return Id;
        }

        // override object.GetHashCode
        public override int GetHashCode()
        {
            return Id.GetHashCode();
        }
    }
}
